let proto = {}

function defineGetter(prop, name) {
  proto.__defineGetter__(name, function () {
    return this[prop][name]
  })
}

function defineSetter(prop, name) {
  proto.__defineSetter__(name,function(val){
    this[prop][name] = val
  })
}
defineGetter('request', 'url')
defineGetter('request', 'path')
defineGetter('request', 'query')
defineSetter('response', 'body')
defineGetter('response', 'body')
module.exports = proto